# -*- coding: UTF-8 -*-
import unittest
from UserTestCase import UserTestCase


class UserTestCase2(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        print("setUpClass 初始化")

    @classmethod
    def tearDownClass(cls):
        print("tearDownClass 资源清理")

    def testCase01(self):
        print("UserTestCase2 testCase01")

    def testCase02(self):
        print("UserTestCase2 testCase02")

    @unittest.skip("跳过这个")
    def testCase03(self):
        print("testCase03")


if __name__ == '__main__':
    # unittest.main(verbosity=2)
    suite = unittest.TestSuite()
    # suite.addTest(UserTestCase2("testCase02"))
    # suite.addTest(UserTestCase("testCase01"))
    # suite.addTest(UserTestCase2("testCase01"))

    suite.addTests([UserTestCase2("testCase02"), UserTestCase("testCase01"), UserTestCase2("testCase01")])

    runner = unittest.TextTestRunner(verbosity=2)
    runner.run(suite)
